<div class='form-group-title'>线下核销设置</div>
<div class="form-group">
    <label class="col-sm-2 control-label">线下核销是否填写联系人</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <label class='radio radio-inline'>
            <input type='radio' value='1' name='data[set_realname]' {if $data['set_realname']==1}checked{/if} /> 隐藏
        </label>
        <label class='radio radio-inline'>
            <input type='radio' value='0' name='data[set_realname]'  {if $data['set_realname']==0}checked{/if} /> 显示
        </label>
        {else}
        <div class='form-control-static'>{if $data['set_realname']==1}隐藏{else}显示{/if}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">线下核销是否填写联系方式</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <label class='radio radio-inline'>
            <input type='radio' value='1' name='data[set_mobile]' {if $data['set_mobile']==1}checked{/if} /> 隐藏
        </label>
        <label class='radio radio-inline'>
            <input type='radio' value='0' name='data[set_mobile]'  {if $data['set_mobile']==0}checked{/if} /> 显示
        </label>
        {else}
        <div class='form-control-static'>{if $data['set_mobile']==1}隐藏{else}显示{/if}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">线下兑换关键词</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <input type="text" name="data[exchangekeyword]" class="form-control" value="{$data['exchangekeyword']}" />
        <span class='help-block'>店员线下兑换使用，使用方法: 回复关键词后系统会提示输入兑换码</span>
        {else}
        <div class='form-control-static'>{if empty($data['exchangekeyword'])}兑换{else}{$data['exchangekeyword']}{/if}</div>
        {/if}
    </div>
</div>
<div class='form-group-title'>红包设置</div>
<div class="form-group">
    <label class="col-sm-2 control-label">发送者名称</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <input type="text" name="data[sendname]" class="form-control" value="{$data['sendname']}"  />
        <span class="help-block">不填写默认为商城名称</span>
        {else}
        <div class='form-control-static'>{$data['sendname']}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">红包祝福语</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <input type="text" name="data[wishing]" class="form-control" value="{$data['wishing']}"  />
        <span class="help-block">不填写默认为”红包领到手抽筋，别人加班你加薪!“</span>
        {else}
        <div class='form-control-static'>{$data['wishing']}</div>
        {/if}
    </div>
</div>

<div class='form-group-title'>基础设置</div>
<div class="form-group">
    <label class="col-sm-2 control-label">在会员中心显示积分兑换按钮</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <label class='radio radio-inline'>
            <input type='radio' value='0' name='data[centeropen]' {if $data['centeropen']==0}checked{/if} /> 隐藏
        </label>
        <label class='radio radio-inline'>
            <input type='radio' value='1' name='data[centeropen]'  {if $data['centeropen']==1}checked{/if} /> 显示
        </label>
        {else}
        <div class='form-control-static'>{if $data['centeropen']==1}显示{else}关闭{/if}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">关注引导页面</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <input type="text" name="data[followurl]" class="form-control" value="{$data['followurl']}"  />
        <span class="help-block">不填写默认为商城引导页面</span>
        {else}
        <div class='form-control-static'>{$data['followurl']}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">积分说明页面</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <input type="text" name="data[crediturl]" class="form-control" value="{$data['crediturl']}"  />
        {else}
        <div class='form-control-static'>{$data['crediturl']}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">分享标题</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <input type="text" name="data[share_title]" id="share_title" class="form-control" value="{$data['share_title']}" />
        {else}
        <div class='form-control-static'>{$data['share_title']}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">分享图标</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        {php echo tpl_form_field_image('data[share_icon]', $data['share_icon'])}
        {else}
        {if !empty($data['share_icon'])}
        <a href='{php echo tomedia($data['share_icon'])}' target='_blank'>
        <img src="{php echo tomedia($data['share_icon'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
        </a>
        {/if}
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">分享描述</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <textarea name="data[share_desc]" class="form-control" >{$data['share_desc']}</textarea>
        {else}
        <div class='form-control-static'>{$data['share_desc']}</div>
        {/if}
    </div>
</div>
<!--<div class="form-group">
    <label class="col-sm-2 control-label">模板选择</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <select class='form-control' name='data[style]'>
            {loop $styles  $style}
            <option value='{$style}' {if $style==$data['style']}selected{/if}>{$style}</option>
            {/loop}
        </select>
        {else}
        {$data['style']}
        {/if}
    </div>
</div>-->
<div class="form-group">
    <label class="col-sm-2 control-label">重要说明</label>
    <div class="col-sm-9 col-xs-12">
        {ifp 'creditshop.set.edit'}
        <textarea name="data[importantdetail]" class="form-control" placeholder="全局重要说明，不填则不显示">{$data['importantdetail']}</textarea>
        {else}
        <textarea id='importantdetail' style='display:none'>{$data['importantdetail']}</textarea>
        <a href='javascript:preview_html("#importantdetail")' class="btn btn-default">查看内容</a>
        {/if}
    </div>
</div>